package com.example.imiaow.yyads_text;

import android.app.Activity;

import com.example.imiaow.yyads_text.banner.BannerFactor;
import com.example.imiaow.yyads_text.splash.SplashFactor;

import io.flutter.embedding.engine.plugins.FlutterPlugin;

public class ViewPlugin {
        public void registerWith(
                FlutterPlugin.FlutterPluginBinding binding,
                Activity activity

        ){
                binding.getPlatformViewRegistry().registerViewFactory(
                        Config.splishPage,new SplashFactor(binding.getBinaryMessenger(),activity));

                binding.getPlatformViewRegistry().registerViewFactory(
                        Config.bannerPage,new BannerFactor(binding.getBinaryMessenger(),activity));
        }

}
